<?php
require_once '../includes/constants.php';
require_once '../includes/usuario.php';
$usuario = new usuario();
$usuario->confirmar_miembro();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>CCIVenezuela :: Panel de Usuario</title>
        <link href="../css/style.css" media="all" rel="stylesheet" type="text/css"/>
        <script type="text/javascript" language="javascript"  src="../js/jquery-1.4.2.min.js"></script>
        <script type="text/javascript" language="javascript"  src="../js/jquery-validate/jquery.validate.min.js"></script>
        <script type="text/javascript" language="javascript" src="../js/jquery-validate/localization/messages_es.js"></script>
        <script type="text/javascript" src="../js/index.js"></script>
        <script type="text/javascript">
            $(document).ready(function(){
                $("#form1").validate({
                    rules:{
                        foto:{accept:"jpg|png"},
                        nombre:{minlength:3},
                        apellido:{minlength:3},
                        login:{minlength:6},
                        password:{minlength:6}
                    }
                });
            });
        </script>
        <script type="text/javascript">
            var _gaq = _gaq || [];
            _gaq.push(['_setAccount', 'UA-571063-15']);
            _gaq.push(['_trackPageview']);
            (function() {
                var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
                ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
                var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
            })();
        </script>
    </head>
    <body>
        <div id="header">
            <?php include '../template/header.php'; ?>
        </div>
        <div id="content">
            <h3>Operaciones disponibles</h3>
            <table align="center" border="0" cellpadding="4" cellspacing="0">
                <tr>
                    <th class="fondoAzul">
                        <img src="../images/users.png" height="24" align="absmiddle"/>
                        <span>Usuarios</span>
                    </th>
                    <td><img src="../images/edit.png"  align="absmiddle"/> <a href="editar.php"> Editar</a></td>
                    <td><img src="../images/config.png"  align="absmiddle"/><?php if (isset($_SESSION['usuario']) && $_SESSION['usuario']['rol'] == 2): ?> <a href="admin.php">Administrar</a><?php else: ?>&nbsp;<?php endif; ?></td>
                </tr>
                <tr>
                    <th class="fondoAzul">
                        <img src="../images/inmuebles.png" height="24" align="absmiddle"/>
                        <span>Inmuebles</span>
                    </th>
                    <td><img src="../images/add.png"  align="absmiddle"/> <a href="<?php echo ROOT . INMUEBLES . "registrar.php"; ?>">Registrar</a></td>
                    <td><img src="../images/config.png"  align="absmiddle"/> <a href="<?php echo ROOT . INMUEBLES . "admin.php"; ?>">Administrar</a></td>
                </tr>
                <?php if (isset($_SESSION['usuario']['rol']) && $_SESSION['usuario']['rol'] == 2): ?>
                    <tr>
                        <th class="fondoAzul">
                            <img src="../images/ads.png" height="24" align="absmiddle"/>
                            <span>Anuncios</span>
                        </th>
                        <td><img src="../images/add.png"  align="absmiddle"/> <a href="<?php echo ROOT; ?>/publicidad/registrar.php">Registrar</a></td>
                        <td><img src="../images/config.png"  align="absmiddle"/> <a href="<?php echo ROOT; ?>/publicidad/admin.php">Administrar</a></td>
                    </tr>
                <?php endif; ?>
            </table>
        </div>
        <div id="footer">
            <?php include '../template/footer.php'; ?>
        </div>
    </body>
</html>
